package com.josework.springhelloworld.mapper;

import com.josework.springhelloworld.model.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cursor.Cursor;

@Mapper
public interface ArticleScan {

    @Select("select * from article limit #{limit}")
    Cursor<Article> scan(@Param("limit") int limit);
}
